package com.czr.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 回答主表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("czr_huida")
@ApiModel(value="czr_huida对象", description="回答主表")
public class CzrHuidaVo extends Model<CzrHuidaVo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "问卷Id")
    @TableField("surveys_id")
    private Long surveysId;

    @ApiModelProperty(value = "问卷名称")
    private String surveysName;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "微信号")
    @TableField("wx")
    private String wx;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "提交时间")
    @TableField("insert_time")
    private String insertTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
